home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12691 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 57 |c.Subjec|t: Re: W|
|00000080| 65 69 72 64 20 52 65 73 | 75 6c 74 73 20 77 69 74 |eird Res|ults wit|
|00000090| 68 20 74 68 69 73 20 63 | 6f 64 65 0a 44 61 74 65 |h this c|ode.Date|
|000000a0| 3a 20 54 75 65 2c 20 32 | 20 41 70 72 20 31 39 39 |: Tue, 2| Apr 199|
|000000b0| 36 20 30 32 3a 30 31 3a | 35 39 20 2d 30 36 30 30 |6 02:01:|59 -0600|
|000000c0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 55 |.Organiz|ation: U|
|000000d0| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 49 6f 77 |niversit|y of Iow|
|000000e0| 61 2c 20 49 6f 77 61 20 | 43 69 74 79 2c 20 49 41 |a, Iowa |City, IA|
|000000f0| 2c 20 55 53 41 0a 44 69 | 73 74 72 69 62 75 74 69 |, USA.Di|stributi|
|00000100| 6f 6e 3a 20 77 6f 72 6c | 64 0a 4d 65 73 73 61 67 |on: worl|d.Messag|
|00000110| 65 2d 49 44 3a 20 3c 50 | 69 6e 65 2e 41 33 32 2e |e-ID: <P|ine.A32.|
|00000120| 33 2e 39 31 2e 39 36 30 | 34 30 32 30 31 35 37 33 |3.91.960|40201573|
|00000130| 30 2e 36 31 36 38 32 48 | 2d 31 30 30 30 30 30 40 |0.61682H|-100000@|
|00000140| 72 65 64 2e 77 65 65 67 | 2e 75 69 6f 77 61 2e 65 |red.weeg|.uiowa.e|
|00000150| 64 75 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |du>.Refe|rences: |
|00000160| 3c 34 6a 71 69 63 34 24 | 6a 67 37 40 75 77 6d 2e |<4jqic4$|jg7@uwm.|
|00000170| 65 64 75 3e 0a 4e 4e 54 | 50 2d 50 6f 73 74 69 6e |edu>.NNT|P-Postin|
|00000180| 67 2d 48 6f 73 74 3a 20 | 72 65 64 2e 77 65 65 67 |g-Host: |red.weeg|
|00000190| 2e 75 69 6f 77 61 2e 65 | 64 75 0a 4d 69 6d 65 2d |.uiowa.e|du.Mime-|
|000001a0| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 43 6f 6e |Version:| 1.0.Con|
|000001b0| 74 65 6e 74 2d 54 79 70 | 65 3a 20 54 45 58 54 2f |tent-Typ|e: TEXT/|
|000001c0| 50 4c 41 49 4e 3b 20 63 | 68 61 72 73 65 74 3d 55 |PLAIN; c|harset=U|
|000001d0| 53 2d 41 53 43 49 49 0a | 58 2d 53 65 6e 64 65 72 |S-ASCII.|X-Sender|
|000001e0| 3a 20 72 6f 62 69 6e 73 | 6f 6e 40 72 65 64 2e 77 |: robins|on@red.w|
|000001f0| 65 65 67 2e 75 69 6f 77 | 61 2e 65 64 75 0a 49 6e |eeg.uiow|a.edu.In|
|00000200| 2d 52 65 70 6c 79 2d 54 | 6f 3a 20 3c 34 6a 71 69 |-Reply-T|o: <4jqi|
|00000210| 63 34 24 6a 67 37 40 75 | 77 6d 2e 65 64 75 3e 20 |c4$jg7@u|wm.edu> |
|00000220| 0a 0a 4f 6e 20 32 20 41 | 70 72 20 31 39 39 36 2c |..On 2 A|pr 1996,|
|00000230| 20 50 65 74 65 72 20 4a | 20 4b 6c 65 63 7a 6b 61 | Peter J| Kleczka|
|00000240| 20 77 72 6f 74 65 3a 0a | 0a 3e 20 54 68 65 20 22 | wrote:.|.> The "|
|00000250| 62 75 67 22 20 69 73 20 | 74 68 61 74 20 74 68 65 |bug" is |that the|
|00000260| 20 70 72 6f 67 72 61 6d | 20 73 65 65 6d 73 0a 3e | program| seems.>|
|00000270| 20 74 6f 20 6a 75 6d 70 | 20 74 6f 20 74 68 65 20 | to jump| to the |
|00000280| 74 69 6d 65 72 2d 6c 6f | 6f 70 20 42 45 46 4f 52 |timer-lo|op BEFOR|
|00000290| 45 20 69 74 20 70 72 69 | 6e 74 73 20 6f 75 74 20 |E it pri|nts out |
|000002a0| 74 68 65 20 64 69 67 69 | 74 73 2e 0a 3e 20 43 6f |the digi|ts..> Co|
|000002b0| 6e 73 65 71 75 65 6e 74 | 6c 79 20 74 68 65 20 64 |nsequent|ly the d|
|000002c0| 65 73 69 72 65 64 20 64 | 69 73 70 6c 61 79 2f 64 |esired d|isplay/d|
|000002d0| 65 6c 61 79 2f 65 72 61 | 73 65 20 73 65 71 75 65 |elay/era|se seque|
|000002e0| 6e 63 65 20 77 6f 72 6b | 73 0a 3e 20 69 6e 20 74 |nce work|s.> in t|
|000002f0| 68 65 20 77 72 6f 6e 67 | 20 6f 72 64 65 72 3a 20 |he wrong| order: |
|00000300| 64 65 6c 61 79 2f 64 69 | 73 70 6c 61 79 2f 65 72 |delay/di|splay/er|
|00000310| 61 73 65 2e 20 20 0a 0a | 20 20 73 74 64 69 6f 20 |ase. ..| stdio |
|00000320| 69 73 20 62 75 66 66 65 | 72 65 64 2e 20 20 70 72 |is buffe|red. pr|
|00000330| 69 6e 74 66 28 29 20 77 | 72 69 74 65 73 20 74 6f |intf() w|rites to|
|00000340| 20 74 68 65 20 62 75 66 | 66 65 72 2c 20 6e 6f 74 | the buf|fer, not|
|00000350| 20 74 6f 20 74 68 65 20 | 73 63 72 65 65 6e 20 0a | to the |screen .|
|00000360| 28 75 6e 6c 65 73 73 20 | 79 6f 75 20 73 70 65 63 |(unless |you spec|
|00000370| 69 66 69 63 61 6c 6c 79 | 20 74 75 72 6e 20 62 75 |ifically| turn bu|
|00000380| 66 66 65 72 69 6e 67 20 | 6f 66 66 2c 20 77 68 69 |ffering |off, whi|
|00000390| 63 68 20 69 73 20 6e 6f | 74 20 67 65 6e 65 72 61 |ch is no|t genera|
|000003a0| 6c 6c 79 20 61 20 0a 67 | 6f 6f 64 20 69 64 65 61 |lly a .g|ood idea|
|000003b0| 29 2e 0a 0a 3e 20 2f 2a | 20 44 69 73 70 6c 61 79 |)...> /*| Display|
|000003c0| 20 61 6e 64 20 45 72 61 | 73 65 20 2a 2f 0a 3e 20 | and Era|se */.> |
|000003d0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|000003e0| 68 3e 0a 3e 20 23 69 6e | 63 6c 75 64 65 20 3c 73 |h>.> #in|clude <s|
|000003f0| 74 64 6c 69 62 2e 68 3e | 0a 3e 20 23 69 6e 63 6c |tdlib.h>|.> #incl|
|00000400| 75 64 65 20 3c 74 69 6d | 65 2e 68 3e 0a 3e 20 0a |ude <tim|e.h>.> .|
|00000410| 3e 20 76 6f 69 64 20 6d | 61 69 6e 28 29 0a 0a 20 |> void m|ain().. |
|00000420| 20 73 2f 62 0a 0a 20 20 | 69 6e 74 20 6d 61 69 6e | s/b.. |int main|
|00000430| 28 76 6f 69 64 29 0a 0a | 3e 20 7b 0a 3e 20 20 20 |(void)..|> {.> |
|00000440| 6c 6f 6e 67 20 6e 6f 77 | 3b 0a 0a 20 20 73 2f 62 |long now|;.. s/b|
|00000450| 0a 0a 20 20 63 6c 6f 63 | 6b 5f 74 20 6e 6f 77 3b |.. cloc|k_t now;|
|00000460| 0a 0a 3e 20 20 20 63 68 | 61 72 20 70 61 75 73 65 |..> ch|ar pause|
|00000470| 3b 0a 3e 20 0a 3e 20 20 | 20 6e 6f 77 20 3d 20 63 |;.> .> | now = c|
|00000480| 6c 6f 63 6b 28 29 3b 0a | 3e 20 20 20 70 72 69 6e |lock();.|> prin|
|00000490| 74 66 20 28 22 77 61 74 | 63 68 20 74 68 65 20 73 |tf ("wat|ch the s|
|000004a0| 63 72 65 65 6e 20 63 61 | 72 65 66 75 6c 6c 79 20 |creen ca|refully |
|000004b0| 70 6c 65 61 73 65 20 5c | 6e 22 29 3b 0a 3e 20 20 |please \|n");.> |
|000004c0| 20 70 72 69 6e 74 66 28 | 22 49 20 77 69 6c 6c 20 | printf(|"I will |
|000004d0| 70 72 69 6e 74 20 74 68 | 65 20 6d 65 73 73 61 67 |print th|e messag|
|000004e0| 65 3a 20 5c 22 31 32 33 | 20 64 69 73 61 70 70 65 |e: \"123| disappe|
|000004f0| 61 72 5c 22 5c 6e 22 29 | 3b 0a 3e 20 20 20 70 72 |ar\"\n")|;.> pr|
|00000500| 69 6e 74 66 28 22 74 68 | 65 6e 20 61 66 74 65 72 |intf("th|en after|
|00000510| 20 61 20 73 68 6f 72 74 | 20 70 61 75 73 65 5c 6e | a short| pause\n|
|00000520| 22 29 3b 0a 3e 20 20 20 | 70 72 69 6e 74 66 28 22 |");.> |printf("|
|00000530| 6f 6e 6c 79 20 74 68 65 | 20 64 69 67 69 74 73 20 |only the| digits |
|00000540| 5c 22 31 32 33 5c 22 20 | 77 69 6c 6c 20 64 69 73 |\"123\" |will dis|
|00000550| 61 70 70 65 61 72 5c 6e | 22 29 3b 0a 3e 20 20 20 |appear\n|");.> |
|00000560| 70 72 69 6e 74 66 28 22 | 70 72 65 73 73 20 72 65 |printf("|press re|
|00000570| 74 75 72 6e 20 77 68 65 | 6e 20 72 65 61 64 79 5c |turn whe|n ready\|
|00000580| 6e 22 29 3b 0a 3e 20 20 | 20 73 63 61 6e 66 20 28 |n");.> | scanf (|
|00000590| 22 25 63 22 2c 20 26 70 | 61 75 73 65 29 3b 0a 3e |"%c", &p|ause);.>|
|000005a0| 20 20 20 70 72 69 6e 74 | 66 20 28 22 31 32 33 20 | print|f ("123 |
|000005b0| 64 69 73 61 70 70 65 61 | 72 22 29 3b 0a 0a 20 20 |disappea|r");.. |
|000005c0| 66 66 6c 75 73 68 28 73 | 74 64 6f 75 74 29 3b 0a |fflush(s|tdout);.|
|000005d0| 0a 3e 20 20 20 66 6f 72 | 20 28 20 3b 20 63 6c 6f |.> for| ( ; clo|
|000005e0| 63 6b 28 29 20 2d 20 6e | 6f 77 20 3c 20 43 4c 4f |ck() - n|ow < CLO|
|000005f0| 43 4b 53 5f 50 45 52 5f | 53 45 43 20 3b 20 29 3b |CKS_PER_|SEC ; );|
|00000600| 20 20 2f 2a 20 74 68 65 | 20 74 69 6d 65 72 20 6c | /* the| timer l|
|00000610| 6f 6f 70 20 2a 2f 0a 3e | 20 0a 3e 20 20 20 70 72 |oop */.>| .> pr|
|00000620| 69 6e 74 66 20 28 22 5c | 72 22 29 3b 0a 3e 20 20 |intf ("\|r");.> |
|00000630| 20 70 72 69 6e 74 66 20 | 28 22 20 20 20 22 29 3b | printf |(" ");|
|00000640| 0a 0a 20 20 72 65 74 75 | 72 6e 20 30 3b 0a 0a 3e |.. retu|rn 0;..>|
|00000650| 20 7d 0a 0a 2f 2a 2a 4a | 61 6d 65 73 20 52 6f 62 | }../**J|ames Rob|
|00000660| 69 6e 73 6f 6e 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |inson***|********|
|00000670| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 20 20 20 20 |********|**** |
|00000680| 20 20 20 20 20 20 20 20 | 0a 20 20 22 41 6e 20 69 | |. "An i|
|00000690| 6d 70 6f 72 74 61 6e 74 | 20 67 6f 61 6c 20 6f 66 |mportant| goal of|
|000006a0| 20 61 6c 6d 6f 73 74 20 | 65 76 65 72 79 20 67 72 | almost |every gr|
|000006b0| 61 70 68 69 63 73 20 70 | 72 6f 67 72 61 6d 20 69 |aphics p|rogram i|
|000006c0| 73 20 74 6f 20 64 72 61 | 77 20 70 69 63 74 75 72 |s to dra|w pictur|
|000006d0| 65 73 20 6f 6e 0a 20 74 | 68 65 20 73 63 72 65 65 |es on. t|he scree|
|000006e0| 6e 2e 22 20 20 20 20 2d | 2d 20 4e 65 69 64 65 72 |n." -|- Neider|
|000006f0| 2c 20 44 61 76 69 73 20 | 26 20 57 6f 6f 2c 20 5f |, Davis |& Woo, _|
|00000700| 4f 70 65 6e 47 4c 5f 50 | 72 6f 67 72 61 6d 6d 69 |OpenGL_P|rogrammi|
|00000710| 6e 67 5f 47 75 69 64 65 | 5f 2c 20 43 68 61 70 74 |ng_Guide|_, Chapt|
|00000720| 65 72 20 31 30 0a 20 20 | 20 20 20 20 20 20 20 20 |er 10. | |
|00000730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2a 2a | | ***|
|00000750| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 6a 61 6d 65 73 2d |********|**james-|
|00000760| 72 6f 62 69 6e 73 6f 6e | 40 75 69 6f 77 61 2e 65 |robinson|@uiowa.e|
|00000770| 64 75 2a 2a 2f 0a 0a 0a | 0a 0a |du**/...|.. |
+--------+-------------------------+-------------------------+--------+--------+